home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1308.dms / var1308.adf / NOS_HELP.LHA / PPP-Startup < prev   
Text File  |  1993-01-27  |  8KB  |  216 lines

  1. # Last-modified: 1993/01/27
  2. # Version: 1.1
  3. #
  4. # Filename: PPP-Startup
  5. # Modified-by: Richard Akerman (akerman@qucis.queensu.ca)
  6. #
  7. # This is a chopped-down version of NOS/net-startup from the amiganos-with-ppp
  8. # distribution.  It is designed to help people who want to use PPP.
  9. #
  10. #  A U T O E X E C . N E T
  11. #
  12. #  Note: NET.EXE ignores all lines beginning with a pound sign (#).
  13. #
  14. #-----------------------------------------------
  15. # This entry tells NET.EXE the name of your machine. The suffix 
  16. # 'ampr' is not officially confirmed *yet*, but for now we'll use
  17. # it to identify this station as an "AMateur Packet Radio" station.
  18. # Your hostname will show up in mail headers, etc.
  19. #
  20. hostname a3000-ppp.Grafnetix.QC.CA
  21. #
  22. #-----------------------------------------------
  23. #
  24. # The next line does the same thing that "MYCALL" did in your AX.25 
  25. # TNC... it identifies the callsign you're using on the air in AX.25
  26. # packets.
  27. #
  28. #ax25 mycall n0qrm-0
  29. #
  30. #-----------------------------------------------
  31. #
  32. # This one contains your IP address.  
  33. #
  34. #ip address [128.120.199.1]
  35. ip address 132.204.20.40
  36. #
  37. #------------------------------------------------
  38. #
  39. # The attach command tells NET.EXE about the interfaces in your computer
  40. # that you will be using for TCP/IP. 
  41. # The syntax is:
  42. # attach <hw type> <I/O address> <vector> <mode> <label> <bufsize> 
  43. #        <mtu> [<speed>]
  44. #
  45. # See USEGUIDE.DOC for explanation of the attach command and its options.
  46. #
  47. # COM1: set up as a 4800 baud SLIP connection with no flow control,
  48. #       with Van Jacobson TCP header compression enabled
  49. #       (to enable CTS flow control, change argument after baud rate to 'cv')
  50. #    (to disable VJ compression, delete 'v' from argument after baud rate)
  51. #
  52. #attach asy 0x3f8 4 slip sl0 8092 576 4800 v
  53. #
  54. # COM1: set up as a 2400 baud ppp link to another computer, no flow control
  55. #    (to enable CTS flow control, add 'c' argument after baud rate)
  56. #
  57. ###log pppstate.log
  58. ###ppp trace 2
  59. attach asy serial.device 0 ppp pp0 8092 576 38400c
  60. #
  61. # PPP has many parameter options, they are described briefly below;
  62. # refer to the README files for more information on these options
  63. #
  64. #   tracing options:
  65. #   there are two trace methods for a PPP interface. they can operate
  66. #   separately or in combination. the first method uses a combination
  67. #   of the 'log' and 'ppp trace' commands (see the example just above
  68. #   the attach command). it traces the transitions of the PPP state
  69. #   machine through its various link states and layers. the second method
  70. #   (as shown below) traces the contents of packets sent and received
  71. #   on a PPP interface. sometimes disk delays while tracing can cause
  72. #   packet timeout and retransmission; in this case, use the 'ppp timeout'
  73. #   command to lengthen the timeout interval.
  74. #
  75. ###trace pp0 1211 ppp.log
  76. #trace pp0 211 ppp.log
  77. #
  78. #   PPP Link Control Protocol options:
  79. #   use the 'ppp ctlmap' command to flag bytes which cant be passed
  80. #   across the data link. if the data link is 8-bit transparent, use
  81. #   a ctlmap of all zeros. if, for example, XON/XOFF are intercepted
  82. #   as flow control by a device in the data link, use a ctlmap value
  83. #   of 0x000A0000
  84. #   [changed as advised by ignatios@cs.uni-bonn.de (Ignatios Souvatzis)]
  85. #   the XON and XOFF bytes will be 'escaped' before
  86. #   transmission (and 'un-escaped' by the remote PPP decoder), but all
  87. #   other ASCII control chars will be sent 'in the clear'.
  88. #
  89. ppp mru      pp0 256
  90. #ppp ctlmap   pp0 0xffffffff
  91. ppp ctlmap   pp0 0x00000000
  92. ppp accomp   pp0 1
  93. ppp protcomp pp0 1
  94. #
  95. #   PPP Peer Authentication Protocol options:
  96. #   the PAP phase is not required, but is recommended in dial-up situations.
  97. #   the side of the link that wants to restrict access should uncomment
  98. #   the 'ppp auth' command. the other side will prompt for a peerid and
  99. #   password; the peerid and password can be preset with a combination of
  100. #   the 'ppp peerid' command and a corresponding entry in the \FTPUSERS file.
  101. #
  102. #ppp auth     pp0 PAP
  103. #ppp peerid   pp0 cckatie
  104. #
  105. #   PPP IP Control Protocol options:
  106. #   each side of a PPP link may know one, both or neither of their respective
  107. #   IP addresses, but both addresses must be collectively known and agreed
  108. #   upon. please refer to the README files for more on IP address negotiation.
  109. #
  110. ppp ipcomp   pp0 vj
  111. #ppp peer    pp0 [128.120.4.104]
  112. #
  113. #   PPP activation command:
  114. #   a PPP interface can be passive or active. a passive PPP interface will
  115. #   wait (forever) for the remote peer to initiate LCP negotiations. a PPP
  116. #   interface is passive by default; use the 'ppp active' command to switch
  117. #   an interface from passive to active. at least one side of the PPP link
  118. #   must be an active interface; it is permissible for both sides to be
  119. #   active; if both sides are passive, nothing will happen because neither
  120. #   side will attempt to start LCP negotiations to open the PPP link.
  121. #   please refer to the README files for more on active/passive status.
  122. #
  123. ppp active   pp0
  124. #ppp passive   pp0
  125. #
  126. #-------------------------------------------------
  127. #
  128. # The KISS computer-to-tnc protocol includes a "command packet" that
  129. # you can use to twiddle TNC parameters like TXDELAY, TXTAIL, PERSIST,
  130. # and SLOTTIME.  Since most KISS implementations include good default
  131. # values, you shouldn't have to use this feature, but if things don't
  132. # work, you can use the "param" command to try tweaking the TNC.  If
  133. # you think you need to do this, read the KISS protocol documentation,
  134. # and/or talk to a friend who's an expert, *before* you go dorking with
  135. # your TNC settings!  All TNC's were not created equal, so you *MUST* read
  136. # the docs for the KISS implementation for your TNC as well.
  137. #
  138. # WHEW!  Good thing you probably don't have to do this, right?
  139. #
  140. # As an example, N3EUA's TNC-1 with a gross old crystal
  141. # rig likes longer TXDELAY and TXTAIL values than the defaults:
  142. #
  143. #          param ax0 1 20
  144. #          param ax0 4 10
  145. #
  146. # The format is:  param <label> <hex value> <hex value> <hex value> ...
  147. #
  148. #-------------------------------------------------
  149. #
  150. # The following entry tells the program to route all packets out 
  151. # the interface labeled pp0 in the attach command.  Notice that if you
  152. # are using the attach line from above for COM2, the label is 'ax1'
  153. # instead.  
  154. #
  155. route add default pp0
  156. #
  157. #
  158. # These commands tell the program where is can find domain name servers
  159. #
  160. #domain addserver [192.4.1.1]
  161. #domain suffix postimage.com
  162. #
  163. #-------------------------------------------------
  164. #
  165. # Time To Live is the maximum number of hops a packet can take 
  166. # before it is thrown away. This command prevents an inadvertent 
  167. # infinite loop from occuring with packets in the network.
  168. #
  169. ip ttl 255
  170. #
  171. #-------------------------------------------------
  172. #
  173. # The Maximum Segment Size is the largest single transmission that 
  174. # you will send. An mss of 536 corresponds to the mtu of 576 set
  175. # up in the attach command above, overhead bytes considered.
  176. #
  177. tcp mss 536
  178. #
  179. #-------------------------------------------------
  180. #
  181. # The Window parameter establishes the maximum number of bytes 
  182. # that may be outstanding before your system expects an ack.
  183. # If window is twice as big as mss, for example, there will be two
  184. # active packets on the channel at any given time... large values of
  185. # window provide improved throughput on full-duplex links, but are a
  186. # problem on the air.  Keep  mss <= window <= 2*mss if you're on the air.
  187. tcp window 1072
  188. #
  189. #------------------------------------------------- 
  190. #
  191. # This entry will open net.log in the \spool directory and will 
  192. # record the server activity of your system.  If you don't want a log,
  193. # comment out this line... if you do, make sure you have a \spool
  194. # directory!
  195. #
  196. #log \spool\net.log
  197. #
  198. #-------------------------------------------------
  199. #
  200. # Each of the servers (services you will provide) must be turned 
  201. # on before they will be active. The following entries turn all 
  202. # of them on. To turn any function off use the command 'stop' after
  203. # NET gets fired up, or just comment out the line here.
  204. #
  205. start smtp
  206. start ftp
  207. start echo
  208. start discard
  209. start telnet
  210. #
  211. #---------------------------------------------------
  212. # THE END
  213.